package com.tchintech.pay.delegate;

import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;

import butterknife.Bind;

/**
 * Created by Administrator on 2017/8/19 0019.
 */

public class ShoppingunitDeleagte extends AppDelegate {
    @Bind(R.id.et_pcd)
    EditText et_pcd;
    @Bind(R.id.et_businessLicenseType)
    EditText et_businessLicenseType;
    @Bind(R.id.et_contactPersonType)
    EditText et_contactPersonType;
    @Bind(R.id.tv_title)
    TextView tv_title;
    @Bind(R.id.iv_back)
    ImageView iv_back;
    @Bind(R.id.bt_submit)
    Button bt_submit;

    @Override
    public int getRootLayoutId() {
        return R.layout.activity_shoppingunit;
    }


    public void setTv_title(String str) {
        tv_title.setText(str);
        iv_back.setVisibility(View.VISIBLE);
}

    /**
     * 获取组件
     *
     * @param id
     * @return
     */
    public EditText getEdit(int id) {
        EditText et = get(id);
        return et;
    }

    /**
     * 获取值
     *
     * @param id
     * @return
     */
    public String getEtStr(int id) {
        EditText et = get(id);
        String str = et.getText().toString().trim();
        return str;
    }


}
